#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void test1()
{
	Heap hp;
	int a[] = {1,3,44,62,8,5,0,88,2,4,5};
	//HeapInit(&hp);
	//for (int i = 0; i < sizeof(a) / sizeof(int); i++)
	//{
	//	HeapPush(&hp,a[i]);
	//}

	//for (int i = 0; HeapEmpty(&hp) != -1; i++)
	//{
	//	for (int i = 0; i < hp._size; i++)
	//	{
	//			printf("%d ", hp._a[i]);
	//	}
	//	/*printf("\n");
	//	printf("%d ", HeapSize(&hp));
	//	HeapPop(&hp);
	//	printf("\n");*/
	//}
	//printf("\n");

	HeapSort(a, sizeof(a) / sizeof(a[0]));
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		printf("%d ", a[i]);
	}
}
int main()
{
	test1();
	return 0;
}